TextDocument Class

Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#
public class TextDocument : Document
Inheritance
Object    Document    TextDocument

Constructors

TextDocumentInitializes a new instance of the TextDocument class
TextDocument(Stream)Initializes a new instance of the TextDocument class
TextDocument(String)Initializes a new instance of the TextDocument class

Properties

AutomaticStyles 
Body 
CommonStyles
(Inherited from Document)
Configurations
(Inherited from Document)
CreationDate
(Inherited from Document)
Creator
(Inherited from Document)
CustomFileTable
(Inherited from Document)
CustomRdf
(Inherited from Document)
Description
(Inherited from Document)
EditingCycles
(Inherited from Document)
EditingDuration
(Inherited from Document)
Fonts 
Forms 
Generator
(Inherited from Document)
Global 
InitialCreator
(Inherited from Document)
InputFileTable
(Inherited from Document)
IsTemplate
(Inherited from Document)
Keywords
(Inherited from Document)
Language
(Inherited from Document)
LastModified
(Inherited from Document)
ManifestRdf
(Inherited from Document)
OfficeScripts 
PrintDate
(Inherited from Document)
PrintedBy
(Inherited from Document)
SequenceVariableDeclarations 
SimpleVariableDeclarations 
Statistic
(Inherited from Document)
Subject
(Inherited from Document)
Template
(Inherited from Document)
Title
(Inherited from Document)
TrackedChanges The document's tracked changes. Never null: a document that has none yet gets an empty one on first use, so doc.TrackedChanges.TrackChanges = true works on a document straight from the constructor. It used to return null there, which is what the documented example does and what therefore threw. An empty instance writes an empty text:tracked-changes element, so a caller that only reads this property does not change what the document saves.
UserDefinedMetadataElements
(Inherited from Document)
UserVariableDeclarations 
UseSoftPageBreaks 

Methods

Clone 
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
Find(String) Returns all occurrences of the specified text in the whole document, including tables, headers, footers, notes, annotations, text boxes and shapes.
(Inherited from Document)
Find(String, FindOptions) Returns all occurrences of the specified text.
(Inherited from Document)
FindElementsT Returns all content elements of the specified type, for example all images or all tables, from the whole document.
(Inherited from Document)
FindElementsT(PredicateT) Returns all content elements of the specified type which match the specified condition.
(Inherited from Document)
FindElementsT(PredicateT, SearchScope) Returns all content elements of the specified type which match the specified condition.
(Inherited from Document)
FindFirst(String) Returns the first occurrence of the specified text or null if the text was not found.
(Inherited from Document)
FindFirst(String, FindOptions) Returns the first occurrence of the specified text or null if the text was not found.
(Inherited from Document)
GetAttributedTexts
(Inherited from Document)
GetBytes
(Overrides DocumentGetBytes)
GetContentElements
(Overrides DocumentGetContentElements)
GetFields
(Inherited from Document)
GetHashCode
(Inherited from Object)
GetHeadings
(Inherited from Document)
GetHtml Converts the document to HTML format.
(Overrides DocumentGetHtml)
GetImages
(Inherited from Document)
GetLists
(Inherited from Document)
GetParagraphs
(Inherited from Document)
GetSections
(Inherited from Document)
GetStream
(Overrides DocumentGetStream)
GetTables
(Inherited from Document)
GetText Returns the plain text of the whole document.
(Inherited from Document)
GetTexts
(Inherited from Document)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Open(Stream)
(Overrides DocumentOpen(Stream))
Open(String)
(Overrides DocumentOpen(String))
Remove Removes the specified content element from the document.
(Inherited from Document)
RenameStyle 
Replace(IContentElement, IContentElement) Replaces the specified content element, for example a span, a paragraph or a table, with another content element. The properties of the replaced element are preserved if the new element has no own properties.
(Inherited from Document)
Replace(IListString, IListString) Replaces all occurrences of the specified oldText with newText.
(Inherited from Document)
Replace(Image, String) Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.
(Inherited from Document)
Replace(String, AttributedText) Replaces all occurrences of the specified text with a copy of the specified span. The text before and after the replaced text keeps its formatting.
(Inherited from Document)
Replace(String, IParagraphContent) Replaces all occurrences of the specified text with a copy of the specified content, for example an image, a tab, a line break, a field or a hyperlink.
(Inherited from Document)
Replace(String, String) Replaces all occurrences of the specified oldText with newText in the whole document. The paragraphs, their styles and all other content of the paragraphs remain unchanged.
(Inherited from Document)
Replace(IContentElement, IContentElement, FindOptions) Replaces the specified content element with another content element.
(Inherited from Document)
Replace(IListString, IListString, FindOptions) Replaces all occurrences of the specified oldText with newText.
(Inherited from Document)
Replace(Image, String, Byte) Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.
(Inherited from Document)
Replace(String, AttributedText, FindOptions) Replaces all occurrences of the specified text with a copy of the specified span.
(Inherited from Document)
Replace(String, IParagraphContent, FindOptions) Replaces all occurrences of the specified text with a copy of the specified content.
(Inherited from Document)
Replace(String, IListAttributedText, FindOptions) Replaces all occurrences of the specified text with copies of the specified spans.
(Inherited from Document)
Replace(String, IListIParagraphContent, FindOptions) Replaces all occurrences of the specified text with copies of the specified content.
(Inherited from Document)
Replace(String, String, FindOptions) Replaces all occurrences of the specified oldText with newText.
(Inherited from Document)
Save(Stream)
(Overrides DocumentSave(Stream))
Save(String)
(Overrides DocumentSave(String))
Save(String, Boolean)
(Overrides DocumentSave(String, Boolean))
SaveAsHtml(Stream) Saves the document in HTML format.
(Overrides DocumentSaveAsHtml(Stream))
SaveAsHtml(String) Saves the document in HTML format.
(Overrides DocumentSaveAsHtml(String))
SaveAsHtml(String, Boolean) Saves the document in HTML format.
(Overrides DocumentSaveAsHtml(String, Boolean))
SaveAsMarkdown(Stream) Saves the document in Markdown format.
SaveAsMarkdown(String) Saves the document in Markdown format.
SaveAsMarkdown(String, Boolean) Saves the document in Markdown format.
SaveAsPdf(Stream) Saves the document in PDF format.
SaveAsPdf(String) Saves the document in PDF format.
SaveAsPdf(Stream, PdfSaveOptions) Saves the document in PDF format.
SaveAsPdf(String, PdfSaveOptions) Saves the document in PDF format.
SaveAsPdf(String, Boolean) Saves the document in PDF format.
SaveAsPdf(String, Boolean, PdfSaveOptions) Saves the document in PDF format.
SaveAsRtf(Stream) Saves the document in RTF format.
SaveAsRtf(String) Saves the document in RTF format.
SaveAsRtf(String, Boolean) Saves the document in RTF format.
ToMarkdown Returns the document content as a Markdown string.
ToRtf Converts the document to RTF format.
ToString
(Inherited from Object)

See Also